/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package ControlBeans;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;

/**
 *
 * @author miguel
 */
@ManagedBean(name="controlindex")
@RequestScoped
public class ControlIndex {
    //variables que controlan si se muestran o no los paneles 
    //en la pagina index.xhtml
   
    
    
    
    
    private Boolean panel1=false;
    private Boolean panel2=false;

   

    public Boolean getPanel1() {
        return panel1;
    }

    public void setPanel1(Boolean panel1) {
        this.panel1 = panel1;
    }

    public Boolean getPanel2() {
        return panel2;
    }

    public void setPanel2(Boolean panel2) {
        this.panel2 = panel2;
    }
    
    //metodo que verifica cual boton de la barra de menu se ha activado
    //y segun este valor muestra cuales paneles deben y no deben mostrarse
    public void IsSelected(int i){
        if(i==1){
            this.panel1=true;
            this.panel2=false;
        }
        else{
            this.panel1=false;
            this.panel2=true;}
     
    
    }
    public void impresion(){
        System.out.println("siiiiiiiiiiiiiiiiiiiiiiiiiiiiihpppppppppp");
        
    }
    public void pruebaboton(){
    
        System.out.println("pruebaboton");
    }
}
